package structures.log;

import manager.SessionManager;
import structures.ServiceCallInfo;

public class LogData {

	private ServiceCallInfo callInfo;
	private String errorType;
	private String errorText;
	private String userCode;
	private String clientIp;
	
	public LogData(ServiceCallInfo callInfo, String errorType,
			String errorText) {
		super();
		this.callInfo = callInfo;
		this.errorType = errorType;
		this.errorText = errorText;
		this.userCode = SessionManager.getLoginUserCode();
		this.clientIp = SessionManager.getClientIp();
	}
	
	public ServiceCallInfo getCallInfo() {
		return callInfo;
	}
	public void setCallInfo(ServiceCallInfo callInfo) {
		this.callInfo = callInfo;
	}
	public String getErrorType() {
		return errorType;
	}
	public void setErrorType(String errorType) {
		this.errorType = errorType;
	}
	public String getErrorText() {
		return errorText;
	}
	public void setErrorText(String errorText) {
		this.errorText = errorText;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getClientIp() {
		return clientIp;
	}
	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}
	
	
}
